home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / graphicgems4.lha / GemsIV / outcode / README < prev    next >
Encoding:
Text File  |  1995-02-06  |  843 b   |  30 lines

  1. C code from the article
  2. "Direct Outcode Calculation for Faster Clip Testing"
  3. by Walt Donovan and Tim Van Hook,
  4. (donovan@eng.sun.com, tvh@sgi.com)
  5. in "Graphics Gems IV", Academic Press, 1994
  6.  
  7.  
  8. The files outcode2.c and outcode4.c are C code fragments for 2D and
  9. 4D outcode calculation that were extracted from the paper, which you
  10. can insert in your own code.
  11.  
  12.  
  13. The following test programs demonstrate the performance gains from using the
  14. direct outcode method. 
  15.  
  16. For a SuperSparc (SS10), we get the following figures:
  17.  
  18. xcc2d1:    ~27 clocks    (would be faster with overlap)
  19. xcc2d2:    ~40 clocks    
  20.  
  21. xcc4d1:    ~54 clocks    (the paper says 50, but that's with a
  22.                 more tightly written version than here)
  23. xcc4d2:    ~94 clocks    (ditto)
  24.  
  25. All of the routines were run several times, and the lowest figure
  26. reported.
  27.  
  28.                         -- walt donovan
  29.                         donovan@eng.sun.com
  30.